﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SNSpirit.Documents
{
	/// <summary>
	/// Represent as an content convereter for a typed document.
	/// </summary>
	public interface ITypedDocumentAdapter
	{
		/// <summary>
		/// Convert a document to another format.
		/// </summary>
		/// <param name="source">The source document and type information.</param>
		/// <param name="targetType">The target type to be converting.</param>
		/// <returns>The new document with the target type.</returns>
		object Convert(TypedDocument source, string targetType);
	}
}
